home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-06-06
|
2KB
|
58 lines
#############################################################################
# Copyright 1994/95 Alex Hornby. All Rights Reserved. See file 1-README for
# details. See 1-README.install for installation instructions.
#############################################################################
version=0.2
BINDIR=/usr/local/games
# Where are the graphics, sounds etc?
LIBDIR=/usr/local/lib/zapem/
libdef= -DLIBDIR=\"$(LIBDIR)\"
# Uncomment this if the game runs too fast
fast= #-DFAST
# Uncomment this for joystick control
joystick= #-DJOYSTICK
# Is it quiet in here?
sound= #-DSOUND
#############################################################################
# Don't change anything below the line unless you know what you are doing.
#############################################################################
options = $(joystick) $(fast) $(libdef) $(sound)
cflags = $(options) -Wall -m486 -O2 -fomit-frame-pointer
objs = alopen.o projectile.o popgun.o entity.o soul.o screen.o starfield.o\
rnd.o asmblock.o animation.o sprite.o control.o Joystick.o Keyboard.o\
menu.o RawKey.o player.o font.o block.o gamelib.o main.o gif.o soundIt.o\
display.o palette.o
target = zapem
COMPILE.c=gcc $(cflags) -c
COMPILE.cc=g++ $(cflags) -c
COMPILE.S=gcc $(cflags) -c
all: $(target)
install: $(target)
install -s -m6755 $(target) $(BINDIR)
install -m755 -d $(LIBDIR)
install -m755 -d $(LIBDIR)gfx
install -m755 -d $(LIBDIR)sfx
install -m755 gfx/* $(LIBDIR)gfx
install -m755 sfx/* $(LIBDIR)sfx
$(target) : $(objs)
g++ $(cflags) -o $(target) $(objs) -lvga
soundIt.o: soundIt.h
package: clean
cd .. && tar cvf - zapem | gzip -9 > zapem-$(version).tgz
clean :
rm -f core *.o $(target)